<?php
if (!defined("HDPHP_PATH"))exit('No direct script access allowed');
/* 
* [***********************]
* @author: mazhenyu[houdunwangmzy@163.com]
* @Date:   2014-06-23 15:07:14
* @Last Modified time: 2014-06-30 13:30:10
*/
// define("TOKEN", "jerry"); //token设置
$config = array(
	'AUTO_LOAD_FILE'                => array('functions.php'),     //自动加载应用Lib目录或应用组Common/Lib目录下的文件
	'route'=>array(
		'/^tid_(\d+)$/'=>'Index/List/index/tid/#1'),
	 'PATHINFO_HTML'                 => '.html',          //伪静态扩展名
	 'PATHINFO_HTML'                 => '',  
	'URL_REWRITE'					=>	true,
	// url重写模式
	  'URL_TYPE'                      => 1,           //类型 1:PATHINFO模式 2:普通模式 3:兼容模式
	'EMAIL_USERNAME'                => '15220138389@126.com',          //邮箱用户名
    'EMAIL_PASSWORD'                => 'bobocheng@111',          //邮箱密码
    'EMAIL_HOST'                    => 'smtp.126.com',          //smtp地址如smtp.gmail.com或smtp.126.com建议使用126服务器
    'EMAIL_PORT'                    => 25,          //smtp端口 126为25，gmail为465
    'EMAIL_SSL'                     => false,           //是否采用SSL,126为false,google必须为true
    'EMAIL_CHARSET'                 => 'utf8',          //字符集设置,中文乱码就是这个没有设置好 如utf8
    'EMAIL_FORMMAIL'                => '15220138389@126.com',          //发送人发件箱显示的邮箱址址
    'EMAIL_FROMNAME'                => '酷梦者(CMD)' ,     //发送人发件箱显示的用户名
		'LANGUAGE'                      => 'zh',          //语言包
	);
$webConfig = include COMMON_CONFIG_PATH . 'webConfig.php';
$webConfig['THUMB_PATH'] = $webConfig['THUMB_PATH'] . '/' . date('ymd');
$webConfig['WATER_FONT'] = ROOT_PATH . $webConfig['WATER_FONT'];
$webConfig['WATER_IMG'] = ROOT_PATH . $webConfig['WATER_IMG'];

return array_merge($config,include COMMON_CONFIG_PATH . 'dbConfig.php',$webConfig);
?>
